package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseFleetDoor;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseFleetDoor is a Querydsl query type for EBaseFleetDoor
 */
@Label("BaseFleetDoor查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseFleetDoor extends RelationalPathBase<EBaseFleetDoor> {

    private static final long serialVersionUID = 1010114626;

    public static final QBaseFleetDoor baseFleetDoor = new QBaseFleetDoor("base_fleet_door");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseFleetDoor> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseFleetCustomer> fleetCustomerFk = createForeignKey(baseFleetCustomerId, "id");

    }

    public final StringPath baseFleetCustomerId = createString("baseFleetCustomerId");

    public final StringPath code = createString("code");

    public final StringPath comment = createString("comment");

    public final StringPath contactPerson = createString("contactPerson");

    public final StringPath doorAddress = createString("doorAddress");

    public final StringPath doorName = createString("doorName");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath phone = createString("phone");

    public final StringPath qq = createString("qq");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseFleetDoor(String variable) {
        super(EBaseFleetDoor.class, forVariable(variable), "null", "base_fleet_door");
        addMetadata();
    }

    public QBaseFleetDoor(String variable, String schema, String table) {
        super(EBaseFleetDoor.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseFleetDoor(Path<? extends EBaseFleetDoor> path) {
        super(path.getType(), path.getMetadata(), "null", "base_fleet_door");
        addMetadata();
    }

    public QBaseFleetDoor(PathMetadata<?> metadata) {
        super(EBaseFleetDoor.class, metadata, "null", "base_fleet_door");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(baseFleetCustomerId, ColumnMetadata.named("base_fleet_customer_id").withIndex(2).ofType(Types.CHAR).withSize(24));
        addMetadata(code, ColumnMetadata.named("code").withIndex(3).ofType(Types.VARCHAR).withSize(255));
        addMetadata(comment, ColumnMetadata.named("comment").withIndex(9).ofType(Types.LONGVARCHAR).withSize(65535));
        addMetadata(contactPerson, ColumnMetadata.named("contactPerson").withIndex(6).ofType(Types.VARCHAR).withSize(100));
        addMetadata(doorAddress, ColumnMetadata.named("doorAddress").withIndex(5).ofType(Types.VARCHAR).withSize(255));
        addMetadata(doorName, ColumnMetadata.named("doorName").withIndex(4).ofType(Types.VARCHAR).withSize(255));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(10).ofType(Types.VARCHAR).withSize(10));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(phone, ColumnMetadata.named("phone").withIndex(7).ofType(Types.VARCHAR).withSize(20));
        addMetadata(qq, ColumnMetadata.named("qq").withIndex(8).ofType(Types.VARCHAR).withSize(20));
    }

}

